package cn.yunhe.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.yunhe.dao.ShuJuDao;

import cn.yunhe.entity.ShuJu;
import cn.yunhe.service.ShuJuService;
@Service("shuJuService")
public class ShuJuServiceImpl  implements ShuJuService{
	@Autowired
	private ShuJuDao shuJuDao;
	@Override
	public int insertShuJu(ShuJu shiJu) {
		
		return shuJuDao.insertShuJu(shiJu);
	}
	public ShuJuDao getShuJuDao() {
		return shuJuDao;
	}
	public void setShuJuDao(ShuJuDao shuJuDao) {
		this.shuJuDao = shuJuDao;
	}
	@Override
	public List<ShuJu> selectShuJu() {
		// TODO Auto-generated method stub
		return shuJuDao.selectShuJu();
	}
	@Override
	public List<ShuJu> selectMoHuShuJu(String rbname) {
		// TODO Auto-generated method stub
		return shuJuDao.selectMoHuShuJu(rbname);
	}

}
